#pragma once
#include "QGraphicsRectWidget.h"
#include <QtCore>
#include <QtGui>
#include "classes\painThread.h"

 class carOnMap : public QGraphicsWidget
 {
 public:
	 QColor color;
	 int id;
	 QPoint StartPos;
	 QPoint EndPos;
	 QPoint EntryPos;
	 carOnMap(int id);
	

     void paint(QPainter *painter, const QStyleOptionGraphicsItem *,QWidget *);
	 void setEndPos(QPoint newPosition);
 };